import antdEnUS from 'ant-design-vue/es/locale-provider/en_US'
import momentEU from 'moment/locale/eu'

const components = {
  antLocale: antdEnUS,
  momentName: 'eu',
  momentLocale: momentEU
}

const locale = {
  'site.title': 'ZenData',

  'menu.data.list': 'Data List',
  'menu.data.edit': 'Data Edit',
  'menu.config.list': 'Config List',
  'menu.config.edit': 'Config Edit',
  'menu.ranges.list': 'Ranges List',
  'menu.ranges.edit': 'Ranges Edit',
  'menu.ranges.item.edit': 'Ranges Item Edit',
  'menu.instances.list': 'Instances List',
  'menu.instances.edit': 'Instances Edit',
  'menu.instances.item.edit': 'Instances Item Edit',
  'menu.excel.list': 'Excel List',
  'menu.excel.edit': 'Excel Edit',
  'menu.text.list': 'Text List',
  'menu.text.edit': 'Text Edit',
  'menu.data.mock': 'Mock Server',

  'title.data.create': 'Data Creation',
  'title.config.create': 'Config Creation',
  'title.ranges.create': 'Ranges Creation',
  'title.instances.create': 'Instances Creation',
  'title.excel.create': 'Excel Creation',
  'title.text.create': 'Text Creation',

  'msg.mine': 'My Data',
  'msg.buildin': 'Build In',
  'msg.info': 'Information',
  'msg.range': 'Range',
  'msg.reference': 'Reference',
  'msg.preview': 'Preview',
  'msg.data.preview': 'Data Preview',

  'msg.workdir': 'WorkDir',
  'msg.help': 'Help',
  'msg.yes': 'Yes',
  'msg.no': 'No',

  'msg.data': 'Data',
  'msg.config': 'Config',
  'msg.ranges': 'Ranges',
  'msg.instances': 'Instances',
  'msg.excel': 'Excel',
  'msg.excel.sheet': 'Excel Sheet',
  'msg.text': 'Text Content',
  'msg.exec': 'Yaml Result',
  'msg.file': 'File',
  'msg.create.time': 'Create Time',

  'msg.design.title': 'TestData Design',
  'msg.design.create.brother': 'Create Brother',
  'msg.design.create.child': 'Create Child',
  'msg.design.remove.node': 'Remove node',

  'msg.mock.create': 'Create Mock',
  'msg.mock.edit': 'Edit Mock',
  'msg.mock.response': 'Mock Response Data',
  'msg.mock.input.path': 'Input mock url prefix',

  'action.list': 'List',
  'action.create': 'Create',
  'action.add': 'Add',
  'action.edit': 'Edit',
  'action.delete': 'Delete',
  'action.design': 'Design',
  'action.back': 'Back',
  'action.import.from.file': 'Refresh Data',
  'action.edit.mock': 'Modify Mock Config',
  'action.edit.data': 'Modify Data Config',
  'action.start.mock': 'Start Mock Service',
  'action.stop.mock': 'Stop Mock Service',

  'tips.refer': 'Reference',
  'tips.pls.select': 'Please select',
  'tips.number': 'Number',
  'tips.range.int': 'Integer or a range of integers',
  'tips.number.or.letter': 'Number or single letter',

  'tips.value.each.line': 'Each line is a value',
  'tips.delete': 'Are you sure to delete?',
  'tips.search': 'Input keywords to search',
  'tips.success.to.import': 'Success to import.',
  'tips.success.to.submit': 'Success to submit.',
  'tips.zero': '0 means retrieve all records.',
  'tips.expr': 'You use a expression like "($field_step_negative * $field_nested_range) * -1 + 1000".',
  'tips.range.and.refer': 'Saved reference settings will overwrite the ones of range.',
  'tips.pls.refresh.data': 'First time to use, please click "Refresh" button on the top-right corner.',

  'upload.spec': 'Upload Spec',
  'upload.spec.failed': 'Upload spec failed.',
  'msg.mock.mock': 'Mock Config',
  'msg.mock.data': 'Data Config',

  'form.name': 'Name',
  'form.file': 'File',
  'form.dir': 'Directory',
  'form.sub.dir': 'Sub Directory',
  'form.folder': 'Folder',
  'form.path': 'Path',
  'form.file.name': 'File Name',
  'form.file.content': 'File Content',
  'form.desc': 'Description',
  'form.content': 'Content',
  'form.prefix': 'Prefix',
  'form.postfix': 'Postfix',
  'form.divider': 'Divider',
  'form.loop': 'Loop',
  'form.loopfix': 'LoopFix',
  'form.type': 'Type',
  'form.type.list': 'List',
  'form.type.timestamp': 'TimeStamp',
  'form.type.interval': 'Interval',
  'form.type.literal': 'Literal',
  'form.width': 'Width',
  'form.mode': 'Mode',
  'form.mode.parallel': 'Parallel',
  'form.mode.recursive': 'Recursive',
  'form.left.pad': 'Left Pad',
  'form.right.pad': 'Right Pad',
  'form.rand': 'Random',
  'form.format': 'Format',
  'form.function': 'Function',
  'form.start': 'Start',
  'form.end': 'End',
  'form.value': 'Value',
  'form.repeat': 'repeat',
  'form.repeatTag': 'Repeat Mode',
  'form.repeatItem': 'Repeat Item',
  'form.repeatGroup': 'Repeat Group',
  'form.step': 'Step',
  'form.col': 'Column',
  'form.count': 'Count',
  'form.expr': 'Expression',
  'form.opt': 'Actions',
  'form.save': 'Save',
  'form.reset': 'Reset',
  'form.cancel': 'Cancel',
  'form.close': 'Close',
  'form.where': 'Where',

  'valid.required': 'Can not be empty.',
  'valid.type.empty': 'Type cannot be empty.',
  'valid.number.or.single.letter': 'Should be a number or single letter.',
  'valid.unsigned.integer': 'Should be unsigned integer.',
  'valid.number': 'Should be a number.',
  'valid.loop.check': 'Should be integer or a range of integers',
  'valid.folder.users': 'Data must be saved in users/ dir',
  'valid.folder.yaml': 'YAML must be saved in /yaml',
  'valid.folder.data': 'Excel must be saved in data/ dir',

  'window.fullscreen': 'fullscreen',
  'window.exit_fullscreen': 'Exit Fullscreen',
  'window.maximize': 'Maximize',
  'window.minimize': 'Minimize',
  'window.restore': 'Restore',
  'window.close': 'Close',

  'update.title': 'Upgrade Reminder',
  'update.new.pre': 'Discover a new version',
  'update.new.suf': ',Determine whether to upgrade。',
  'update.update': 'Upgrade Now',
  'update.notice.tomorrow': 'Remind Tomorrow',
  'update.notice.skip': 'Skip This Version',
  'update.reboot': 'Reboot Now',
  'update.pending': 'Reboot Later',
  'update.failed': 'Upgrade error. Please contact the administrator.',

  'copy.success': 'Copy Success',
  'copy.title': 'Copy Link',

  'preview.title': 'Refresh Data',
}

export default {
  ...components,
  ...locale
}
